package upload

import "mime/multipart"

type OSS interface {
	UploadFile(file *multipart.FileHeader) (string, string, error)
	DeleteFile(key string) error
}

func NewOss(key string) OSS {
	switch key {
	case "local":
		return &Local{}
	// case "qiniu":
	// 	return &Qiniu{}
	// case "tencent":
	// 	return &TencentCOS{}
	// case "aliyun":
	// 	return &AliyunOSS{}
	default:
		return &Local{}
	}
}
